package com.hy.loong.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.hy.loong.pojo.User;

@Controller
public class LoginController {
	private static final Logger log = LoggerFactory.getLogger(LoginController.class);
	@RequestMapping(value="/",method =RequestMethod.GET)
	public String indexMatch(User user){
		log.info("进入LoginController：index");
		return "index";
	}
	
	@RequestMapping(value ="/demo",method = RequestMethod.GET)
	public String demo(){
		log.info("进入LoginController：demo");
		return "demo";
	}
	
	@RequestMapping(value ="/login",method = RequestMethod.GET)
	public String login(){
		log.info("进入LoginController：login");
		return "login";
	}
}
